<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>iTEC Widget Store</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/widget.css" />
<link type="text/css" href="css/smoothness/jquery-ui-1.8.16.custom.css" rel="stylesheet" />	

<script src="js/lang/en.js" type="text/javascript"></script>
<script src="js/lang/pt.js" type="text/javascript"></script>

<script src="js/libs/modernizr-2.0.6.min.js"></script>

<script type="text/javascript" src="js/libs/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/libs/jquery.tools.min.js"></script>
<script type="text/javascript" src="js/libs/jquery-ui-1.8.16.custom.min.js"></script>

<script type="text/javascript" src="js/jquery.raty.min.js"></script>
<script type="text/javascript" src="js/cookies.js"></script>
<script type="text/javascript" src="js/base64.js"></script>
<script type="text/javascript" src="js/store.js"></script>
<script type="text/javascript" src="js/signals.js"></script>
<script type="text/javascript" src="js/widget_view.js"></script>
<script type="text/javascript" src="js/pmrpc.js"></script>

</head>

<body>

<div id="page">


<div class="headerMain">
    <div class="navigationBar">
    	<div class="navigationItem" onclick="goHome()" id="store_link">Widget Store</div>
        <div class="navigationItem" onClick="goToCategorySearch()" id="categories_link">Categories</div>
        <div class="navigationItem" onClick="goToFavourites()" id="favourites_link">Favourites</div>
        <div class="logged-in"><div class="navigationItem" onClick="goToMyWidgets()" id="my_widgets_link">My Widgets</div></div>
        <div class="logged-in"><div class="navigationItem" onClick="goToWidgetCreator()" id="creator_link">Creator</div></div>
        <div class="admin-view"><div class="navigationItem" onClick="goToAdmin()" id="admin_link">Admin</div></div>
        <div class="searchtag" onclick="searchStore();">Search</div>
        <input class="searchBox" type="text" name="q" placeholder="Search term here" id="searchText" />
        <div class="login" id="login"></div>
        <div class="clear"></div>
    </div>
    <div class="clear"> </div>
</div>
<div class="clear"> </div>


	<div class="sectionhead">
		<h2 id="results_title">Widget Information</h2>
	</div>
	<div class="section" id="widget_view">
		<div class="widgetInfo">
			<table class="wi_table">
				<tr>
					<td class="wi_top" colspan="2">
					<table width="100%" cellpadding="10px">
						<tr>
							<td width="20%"><div class="wi_icon"></div></td>
							<td>
								<div class="wi_title"></div>
								<div class="wi_description"></div>
							</td>
						</tr>
					</table>
						

					</td>
				</tr>
				<tr>
					<td class="wi_bottom_left">
						<div class="wi_label_left"><div class="wi_label" id="owner_label">Uploaded By: </div><div class="wi_text" id="wi_author"></div><div class="clear"></div></div>
						<div class="wi_label_left"><div class="wi_label" id="type_label">Type:</div><div class="wi_text" id="wi_type"></div><div class="clear"></div></div>
						<div class="wi_label_left"><div class="wi_label" id="uploaded_label">Uploaded:</div><div class="wi_text" id="wi_created"></div><div class="clear"></div></div>
						<div class="wi_label_left"><div class="wi_label" id="updated_label">Updated:</div><div class="wi_text" id="wi_updated"></div><div class="clear"></div></div>

					</td>
					<td class="wi_bottom_right">
                    	<div class="logged-in"><div class="wi_label_left"><div class="wi_label">View Widget: </div><div class="wi_text"><button onClick="viewWidget()" id="viewwidget_label">View</button></div><div class="clear"></div></div>
                         <div id="install_button"></div>

                        </div>
                        <div class="wi_label_left"><div class="wi_label" id="embedcode_label">View Embed Code: </div><div class="wi_text" ><button onClick="embedCode()">Embed Code</button></div><div class="clear"></div></div>
						<div class="wi_label_left"><div class="wi_label" id="averagerating_label">Average Rating: </div><div id="average-rating" class="wi_text"></div><div class="clear"></div></div>
						<div class="logged-in"><div class="wi_label_left"><div class="wi_label" id="yourrating_label">Your Rating: </div><div id="your-rating" class="wi_text"></div><div class="clear"></div></div></div>
						
					</td>
				</tr>
                <tr>
                	<td class="wi_bottom_left">
                    	 <div class="wi_label_left"><div class="wi_label">Functionalities</div><div class="clear"></div></div>
                        <div class="wi_tag_box" id="functionalities-list"></div>
                        <div class="logged-in new-tag-box">
                        	<p><span id="editfunctionalities_label">Edit Functionalities:</span> <button onClick="goToFunctionalities()" id="functionalities_button">Functionalities</button></p>
                        </div>
                    </td>
                    <td class="wi_bottom_right">
                    	<div class="wi_label_left"><div class="wi_label" id="tags_label">Tags</div><div class="clear"></div></div>
						<div class="wi_tag_box" id="tag-list"></div>
						<div class="logged-in new-tag-box">
							<p><span id="tags_select_label">Select an existing tag:</span> <button onclick="openTagsDialog()" id="tagchoose_button">Choose</button></p>
							<p><span id="tagcreate_label">Or create one</span>
							<input type="text" id="tag-text" />
							<button onclick="saveTag()" id="savetag_button">Save</button></p>
							
						</div>
                   </td>
			</table>
			<table class="review-table">
				<tr>
					<td class="review-cell" id="reviews_label">Reviews: <span id="numberOfReviews"></span></td>
				</tr>
				<tr>
					<td id="reviewList"></td>
				</tr>
				<tr>
					<td>
						<div class="logged-in">
                        	<div class="instruction" id="review_instruction"></div>
							<textarea rows="7" cols="100" id="review-text" class="review-text-box"></textarea>
							<button onclick="addReview();" id="savereview_button">Save</button>
						</div>
						<div class="not-logged-in">
							<div class="message" id="review_message"></div>
						</div>
					</td>
				</tr>
			</table>
		</div>
	</div>
<div class="clear">&nbsp;</div>


<footer>
&nbsp;
</footer>

</div>
<div id="embedDialog"><div class="wi_label_left" style="font-weight:700; padding-bottom:20px">Use this code to embed the widget in your page</div><div id="embedContent"></div></div>
<div id="viewDialog"><div id="viewContents"></div></div>

 
</body>


</html>
